<!--e
--
--
安居分待放款页面
--
--
--->
<template>
  <!-- 待放款及挂账 -->
  <div class="box clearfix">
    <section class="section_wrap">
      <FunctionalAreas
        :pending="pending"
        :orderNumber="orderNumber"
      ></FunctionalAreas>
      <div class="title_sub prduct_bod_r">产品说明：</div>
      <ProductDescriptionToo></ProductDescriptionToo>
    </section>
    <section class="section_wrap">
      <div style="width:100%;height:50px">
        <div class="title_sub infro_bod_l">信息查看：</div>
        <div class="state" v-if="status == true">状态：挂账</div>
        <div class="state" v-if="status == false">状态：待放款</div>
      </div>
      <InformationsViewer02 :orderNumber="orderNumber"></InformationsViewer02>
    </section>
     <section class="section_wrap">
      <div class="title_sub infro_bod_l">风控大数据查询</div>
      <viewInfo> </viewInfo>
    </section>
    <section class="section_wrap">
      <div class="title_sub infro_bod_l">放款信息：</div>
      <LoanInforAjf :orderNumber="orderNumber"></LoanInforAjf>
    </section>
     
	
    <section class="section_wrap" v-if="signSure == 1 && status == false">
      <div class="title_sub infro_bod_l">生成签约及分期表：</div>
      <signUp :orderNumber="orderNumber"></signUp>
    </section>
    <section class="section_wrap">
      <div class="title_sub upload_bod_l" id="testjq">附件管理：</div>
      <!-- 上传组件 -->
      <Upload class="uploadStyle" :isNew="isNew"></Upload>
    </section>
    <section class="section_wrap">
      <Attachment></Attachment>
      <div class="title_sub prduct_bod_r">审批流：</div>
      <ApprovalText :orderNumber="orderNumber"></ApprovalText>
    </section>
  </div>
</template>

<script>
import FunctionalAreas from "../../components/business/FunctionalAreas2";
import ProductDescriptionToo from "../../components/business/ProductDescriptionToo";
import InformationsViewer02 from "../../components/business/InformationsViewer02";
import ApprovalText from "../../components/business/ApprovalText";
import Attachment from "../../components/business/Attachment";
import Upload from "../../components/business/Upload";
import LoanInforAjf from "@/components/business/LoanInforAjf";
import signUp from "../../components/signUp/signUp";
import viewInfo from "../../components/business/viweInfo.vue";
import { getProductUrl, getFindOneList } from "../../../src/assets/js/api";
import { checkPermiss } from "../../assets/js/utlis";
export default {
  name: "ToBeLent",
  components: {
    FunctionalAreas,
    ProductDescriptionToo,
    InformationsViewer02,
    ApprovalText,
    Attachment,
    Upload,
    LoanInforAjf,
    signUp,viewInfo
  },
  data() {
    return {
      pending: true,
      orderNumber: "",
      isNew: false,
      status: null,
      ProductUrl: "",
      markUpdate: "",
      signSure: ""
    };
  },
  created() {
    this.golbalPermissions = localStorage.getItem("permissions").split(",");
    this.orderNumber = sessionStorage.getItem("orderNumber");
    this.status = eval(this.$route.query.status);
    let id = sessionStorage.getItem("prductId");
    this.findProductUrl(this.orderNumber);
    this.getFindOneList(id);
  },
  computed: {
    //合同数据添加按钮
    showGuaranteeMoneyBtn: function() {
      return checkPermiss(
        "business:upForm:GuaranteeMoney",
        this.golbalPermissions
      );
    },
    //财务信息添加按钮
    showChargeBtn: function() {
      return checkPermiss("business:upForm:charge", this.golbalPermissions);
    },
    //放款信息添加按钮
    showChargeFkBtn: function() {
      return checkPermiss("business:upForm:chargeAjf", this.golbalPermissions);
    }
  },
  methods: {
    //根据订单查询路由path路径
    findProductUrl(orderNumber) {
      getProductUrl({
        orderNumber: orderNumber
      }).then(res => {
        this.ProductUrl = res.data.productUrl;
      });
    },
    // 查询产品说明
    getFindOneList(id) {
      getFindOneList(id).then(res => {
        this.signSure = res.data.signSure;
      });
    }
  }
};
</script>

<style scoped type="less">
.text
{
    font-size: 20px;  font-weight: bold;  margin-top: 20px;  text-align: left;  text-indent: 2em;
}
.state
{
    font-size: 22px;  font-weight: bold;  float: right;  margin-top: -20px;  margin-right: 3%;
}

.uploadStyle
{
    position: relative;  margin-top: 20px;
}
.posInput
{
    position: relative;
}
.pos
{
    position: absolute;  z-index: 2;
}
.pos.left
{
    left: 10px;
}
.pos.right
{
    right: 0;
}
.posInput ::v-deep .el-input__inner
{
    padding: 0 50px 0 40px;  text-align: center;
}
.posInput.ts ::v-deep .el-input__inner
{
    padding-left: 25px;
}
.ajfWrap ::v-deep .el-row
{
    line-height: 50px;
}
::v-deep .el-form-item__content
{
    text-align: left;
}
::v-deep .el-input.is-disabled .el-input__inner
{
    width: 100%;
}
::v-deep .el-date-editor.el-input
{
    width: 100%;
}





</style>
